<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
{js href="/static/admin/lib/html5shiv.js,/static/admin/lib/respond.min.js"}
<![endif]-->
{css href="/static/admin/static/h-ui/css/H-ui.min.css,/static/admin/static/h-ui.admin/css/H-ui.admin.css,/static/admin/lib/Hui-iconfont/1.0.8/iconfont.css,/static/admin/static/h-ui.admin/skin/default/skin.css,/static/admin/static/h-ui.admin/css/style.css,/static/admin/lib/webuploader/0.1.5/webuploader.css"}
<!--[if IE 6]>
{js href="/static/admin/lib/DD_belatedPNG_0.0.8a-min.js"}
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>查看订单 - 订单管理</title>
</head>
<body>
{notempty name="data"}
	<div class="cl pd-20" style=" background-color:#5bacb6">
		<img class="avatar size-XL l" src="{$data->user->headimg_url}">
		<dl style="margin-left:80px; color:#fff">
			<dt>
				<span class="f-18">{$data->user->nickname}</span>
				<span class="pl-10 f-12">手机号码：{$data->user->mobile}</span>
			</dt>
			<dd class="pt-10 f-12" style="margin-left:0">这家伙很懒，什么也没有留下</dd>
		</dl>
	</div>
	<div class="pd-20">
		<table class="table">
			<tbody>
			<tr>
				<th class="text-r" width="120">订单号码：</th>
				<td>{$data.order_number}</td>
			</tr>
			<tr>
				<th class="text-r">订单状态：</th>
				<td>{$data.payment_status_text}</td>
			</tr>
			{if isset($data->curriculum)}
				<tr>
					<th class="text-r">商品ID：</th>
					<td>{$data->curriculum->id}</td>
				</tr>
				<tr>
					<th class="text-r">商品ID：</th>
					<td>{$data->curriculum_title}</td>
				</tr>
				<tr>
					<th class="text-r">商品金额(元)：</th>
					<td>{$data->curriculum->price}</td>
				</tr>
			{else/}
				<tr>
					<th class="text-r">商品详情：</th>
					<td>商品已删除</td>
				</tr>
			{/if}
			<tr>
				<th class="text-r">支付金额(元)：</th>
				<td>{$data.price}</td>
			</tr>
			<tr>
				<th class="text-r">下单时间：</th>
				<td>{$data.create_at}</td>
			</tr>
			<tr>
				<th class="text-r">支付时间：</th>
				<td>{$data.payment_at}</td>
			</tr>
			<tr>
				<th class="text-r">收货人：</th>
				<td>{$data->consignee}</td>
			</tr>
			<tr>
				<th class="text-r">收货手机号码：</th>
				<td>{$data->mobile}</td>
			</tr>
			<tr>
				<th class="text-r">收货地址：</th>
				<td>{$data->area}</td>
			</tr>
			<tr>
				<th class="text-r">收货详细地址：</th>
				<td>{$data->address}</td>
			</tr>
			{if isset($data->userCoupons) && isset($data->userCoupons->coupons) }
				<tr>
					<th class="text-r">优惠券金额(元)：</th>
					<td>{$data->userCoupons->coupons->price}</td>
				</tr>
			{else /}
				<tr>
					<th class="text-r">优惠券详情：</th>
					<td>优惠券已删除</td>
				</tr>
			{/if}
			</tbody>
		</table>
	</div>
{/notempty}

<!--_footer 作为公共模版分离出去-->
{js href="/static/admin/lib/jquery/1.9.1/jquery.min.js,/static/admin/lib/layer/2.4/layer.js,/static/admin/static/h-ui/js/H-ui.min.js,/static/admin/static/h-ui.admin/js/H-ui.admin.js"}
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
{js href="/static/admin/lib/jquery.validation/1.14.0/jquery.validate.js,/static/admin/lib/jquery.validation/1.14.0/validate-methods.js,/static/admin/lib/jquery.validation/1.14.0/messages_zh.js,/static/admin/static/gloab.js,/static/admin/static/gloab.css,/static/admin/lib/webuploader/0.1.5/webuploader.min.js,/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"}
<script type="text/javascript">
$(function(){
	{if !$data}
    	layer.msg('资源不存在',{icon:5,time:2000});
	{/if}
});
</script> 
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>